4
0
mirror of https://github.com/QuasarApp/CopyrightFixer.git synced 2025-05-10 00:19:45 +00:00

Merge pull request from QuasarApp/task_65

Remove the currentOwner opt.
This commit is contained in:
Igor loschinin 2021-05-13 23:14:30 +03:00 committed by GitHub
commit fe63bba2f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 26 deletions
README.md
src/CopyrighFixer/CopyrighFixer
tests/units

@ -31,7 +31,7 @@ This is simple console tool for change all copyrigh labels of your source code.
Sign not signed files.
``` bash
cfixer -sourceDir /path/sources -sign /path/to/copyright/file -currentOwner QuasraApp
cfixer -sourceDir /path/sources -sign /path/to/copyright/file
```
## Support options
@ -39,8 +39,7 @@ Sign not signed files.
| option | arguments | discription |
|---------|------------|--------------|
| sourceDir | pathToSourceDirectory | This arrgument sets path to the source directory. By default it is sourceDir = **PWD** |
| sign | pathToFileWithSignPatern | This argument sets path to the sign patern. This is a required argument |
| currentOwner | ownerName | This argument sets name of the current owner of the code. |
| sign | pathToFileWithSignPatern | This argument sets path to the sign patern. This is a required argument |
# This project supports next build targets:

@ -20,10 +20,6 @@ void Config::setSingValue(const Signature &value) {
_signValue = value;
}
void Config::setCurrOwn(const QString &owner) {
_currentOwner = owner;
}
const QString &Config::getSrcDir() const {
return _sourceDirPath;
}
@ -32,9 +28,5 @@ const Signature &Config::getSignVal() const {
return _signValue;
}
const QString &Config::getCurrentOwn() const {
return _currentOwner;
}
}

@ -34,12 +34,6 @@ public:
*/
void setSingValue(const Signature &value);
/**
* @brief setCurrOwn This method sets the current owners.
* @param owner Current owner.
*/
void setCurrOwn(const QString &owner);
/**
* @brief getSrcDir This method return the path to the directory with files for signature.
* @return The path to the directory.
@ -52,16 +46,9 @@ public:
*/
const Signature &getSignVal() const;
/**
* @brief getCurrentOwn This method return the name current owner.
* @return The object of a current owner.
*/
const QString &getCurrentOwn() const;
private:
QString _sourceDirPath;
Signature _signValue;
QString _currentOwner;
};
}

@ -10,8 +10,6 @@
#include "test.h"
#include "testutils.h"
#include "CopyrighFixer/sign.h"
#include "CopyrighFixer/config.h"
#include "CopyrighFixer/configparser.h"
#include <QTest>